//
//  UILabel+YWExtension.swift
//  demo02
//
//  Created by 陈友文 on 2021/1/22.
//

import UIKit


extension UILabel{
    
    convenience init(title:String,
                     textFont:UIFont = UIFont.systemFont(ofSize: 14),
                     tColor:UIColor = UIColor.black,
                     bgColor:UIColor = UIColor.white,
                     tAlignment:NSTextAlignment = .left,
                     tNumberOfLines:Int =  1
                     ) {
        self.init()
        text = title
        font = textFont
        textColor = tColor
        backgroundColor = bgColor
        textAlignment = tAlignment
        numberOfLines = tNumberOfLines
    }
    
}
